body {
  font-size: 14px;
  line-height: 1.15;
  color: #303133;
  background-color: #fff;
}

:before,
:after {
  box-sizing: border-box;
}

a {
  color: mix(#fff, $--color-primary, 20%);
  text-decoration: none;

  &:focus,
  &:hover {
    color: $--color-primary;
    text-decoration: none;
  }
}

img {
  vertical-align: middle;
}

input[type="button"],
input[type="submit"],
input[type="reset"] {
  -webkit-appearance: none;
}

textarea {
  -webkit-appearance: none;
}

// select {
//   -webkit-appearance: none;
// }

*::-moz-focus-inner {
  border: 0;
  outline: 0;
}

*:focus {
  outline: none !important;
}

/* Utils
------------------------------ */
.clearfix:before,
.clearfix:after {
  content: " ";
  display: table;
}

.clearfix:after {
  clear: both;
}

/* Animation
------------------------------ */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s;
}

.fade-enter,
.fade-leave-to {
  opacity: 0;
}

/* Reset element-ui
------------------------------ */
.site-wrapper {
  .el-pagination {
    margin-top: 15px;
    text-align: right;
  }
}

/* Layout
------------------------------ */
.page-main {
  margin-left: $sidebar-full-width;
  height: calc(100vh - #{$navbar-height});
}

.page-header {
  background: #fff;
  padding: 12px 24px;

  .page-heading-title {
    margin-right: 12px;
    margin-bottom: 0;
    color: rgba(0, 0, 0, 0.85);
    font-weight: 600;
    font-size: 18px;
    line-height: 32px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

.bg-content {
  background: $content--background-color;
}

.page-content {
  position: relative;
  width: 100%;
  padding: 26px 26px;
  min-width: 1024px;
}

.page-content-body {
  // background-color: #fff;
  border-radius: 2px;
  border: 1px solid #f0f5fa;
}

.page-container {
  position: relative;
  overflow: visible !important;
  padding: 20px 20px 50px 20px;
  min-height: 240px;
  overflow: hidden;
}

.site-breadcrumb {
  .el-breadcrumb__inner {
    color: rgba(0, 0, 0, 0.5);
    font-weight: normal;
    a {
      color: rgba(0, 0, 0, 0.5);
      font-weight: normal;
    }
  }
  .el-breadcrumb__item:last-child .el-breadcrumb__inner,
  .el-breadcrumb__item:last-child .el-breadcrumb__inner:hover,
  .el-breadcrumb__item:last-child .el-breadcrumb__inner a,
  .el-breadcrumb__item:last-child .el-breadcrumb__inner a:hover {
    color: #515a6e;
    font-weight: 500;
  }

  .reload {
    float: left;
    cursor: pointer;
    color: #515a6e;
    font-size: 14px;
    padding: 0 12px;
    :hover {
      color: $--color-primary;
    }
  }
}
.site-wrapper {
  position: relative;
  min-width: 1180px;
}

.site-sidebar__wrapper {
  height: 100%;
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.side-sidebar_top {
  display: block;
  flex-grow: 1;
}

.side-sidebar_bottom {
  flex-grow: 0;
  display: block;
}

// sidebar logo
.sidebar-brand {
  display: flex;
  align-content: center;
  margin: 0;
  font-size: 20px;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar-brand .title {
  display: inline-block;
  font-size: 16px;
  line-height: 36px;
  vertical-align: bottom;
  padding-left: 10px;
}
.sidebar-logo {
  display: inline-block;
  line-height: 0;
  font-size: 36px;
}

.sidebar-logo:before {
  content: " ";
  position: absolute;
  background: linear-gradient(to left, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  width: 25px;
  height: 50px;
  top: 0;
  left: -45px;
  opacity: 0.6;
  -webkit-transition: all 0.85s ease-out;
  transition: all 0.85s ease-out;
  -webkit-transform: skewX(-25deg);
  transform: skewX(-25deg);
}
.sidebar-logo:hover:before {
  width: 62px;
  left: 65px;
}

// sidebar avatar
.site-avatar_dropdown {
  &.el-popper[x-placement^="right"] {
    // margin-left: 0;
    // margin-top: 0;
    // margin-bottom: 2px;
    // border-radius: 0;
    // border: none !important;
    // box-shadow: none;
    // padding: 0;

    // .popper__arrow {
    //   display: none;
    // }
  }
}

.site-sidebar__avatar {
  border-left: 3px solid #fff;
  padding: 5px 40px 5px 10px !important;
  width: 100%;
  // height: 44px;
  line-height: 44px;
  position: relative;

  &:focus,
  &:hover {
    border-left: 3px solid $--color-primary;
    box-shadow: none;
  }

  .el-dropdown-link {
    font-weight: normal;
    margin-left: -3px;
    overflow: hidden;
  }
  .el-dropdown {
    width: 100%;
    display: block;
  }
  .user-button {
    float: right;
  }
  .collapsed-button {
    float: left;
  }
}

.side-sidebar_bottom {
  .toggle-fold-button {
    position: absolute;
    bottom: 20px;
    left: 80px;
    font-size: 18px;
    color: #eee;
    display: none;
  }
}

.site-sidebar--fold {
  .page-main {
    margin-left: $sidebar-width;
  }

  .sidebar-brand .title {
    display: none;
  }

  .site-sidebar__avatar {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .collapsed-button {
    display: none;
  }

  .toggle-fold-button {
    display: block;
  }

  .user-button {
    float: none;
    text-align: center;
  }
}

/* Sidebar icon
------------------------------ */
.el-menu-item,
.el-submenu {
  &.is-active {
    > .dot-icon {
      color: inherit !important;
    }
  }
  .dot-icon {
    color: #c3cbd6 !important;
  }
}

.site-sidebar--light-popper {
  .el-submenu.is-active {
    .el-submenu__title {
      > .el-submenu__icon-arrow {
        font-weight: bolder;
        color: $sidebar--color-text-light !important;
      }
    }
  }
}

.site-sidebar--dark-popper {
  .el-submenu.is-active {
    .el-submenu__title {
      > .el-submenu__icon-arrow {
        font-weight: bolder;
        color: $sidebar--color-arrow-dark !important;
      }
    }
  }
}

/* Sidebar fold
------------------------------ */
.site-sidebar--fold {
  //sidebar-fold 区别普通 sidebar
  .site-sidebar {
    .el-menu-item {
      text-align: center;
    }

    .site-sidebar__menu-icon {
      font-size: 21px !important;
      margin-right: 0 !important;

      & + span {
        display: none;
      }
    }

    .el-submenu__title {
      text-align: center;
    }

    .site-sidebar__menu-icon {
      color: inherit !important;
    }
  }

  .site-navbar__header,
  .site-navbar__brand,
  .site-sidebar,
  .site-sidebar__inner,
  .el-menu.site-sidebar__menu {
    width: $sidebar-width !important;
  }

  .site-navbar__body,
  .site-content__wrapper {
    margin-left: 0;
  }

  .site-navbar__brand {
    &-lg {
      display: none;
    }

    &-mini {
      display: inline-block;
    }
  }

  .site-sidebar,
  .site-sidebar__inner {
    overflow: initial;
  }

  .el-submenu {
    .el-submenu__title {
      .site-sidebar__menu-icon {
        margin-right: 0;
      }
    }
  }

  .el-submenu.is-active > .el-submenu__title {
    color: $sidebar--color-text-light;
  }

  .site-content--tabs > .el-tabs > .el-tabs__header {
    left: $sidebar-width;
  }
}

// animation
.site-navbar__header,
.site-navbar__brand,
.site-navbar__body,
.site-sidebar,
.site-sidebar__inner,
.site-sidebar__menu.el-menu,
.site-sidebar__menu-icon,
.site-content__wrapper,
.site-content--tabs > .el-tabs .el-tabs__header {
  transition: inline-block 0.3s, left 0.3s, width 0.3s, margin-left 0.3s, font-size 0.3s;
}

/* Navbar
------------------------------ */
.user-dropdown {
  margin-top: 5px !important;
  padding: 0;
}
.hamburger-container {
  line-height: 46px;
  height: 100%;
  float: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  &:hover {
    background: rgba(0, 0, 0, 0.025);
  }
}
.navbar {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 1022;
  height: $navbar-height;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgb(0 21 41 / 8%);

  .underline {
    border-bottom: 1px solid $--color-primary;
  }

  .left-menu {
    height: 100%;
    line-height: $navbar-height;
    display: flex;
    align-items: center;
    .site-logo {
      width: $sidebar-width;
      display: flex;
      justify-content: center;
    }
    .site-logo.lg {
      width: $sidebar-full-width;
    }
    .site-hamburger {
      width: $sidebar-width;
      display: flex;
      justify-content: center;
      font-size: 24px;
    }
    .site-hamburger.lg {
      width: $sidebar-full-width;
      justify-content: flex-end;
    }
  }
  .right-menu {
    height: 100%;
    line-height: $navbar-height;
    display: flex;
    &:focus {
      outline: none;
    }
    .popper__arrow {
      display: none;
    }
    .right-menu-item {
      display: inline-block;
      padding: 0 8px;
      height: 100%;
      font-size: 18px;
      color: #5a5e66;
      vertical-align: text-bottom;
      &.hover-effect {
        cursor: pointer;
        transition: background 0.3s;
        &:hover {
          background: rgba(0, 0, 0, 0.025);
        }
      }
    }
    .avatar-container {
      margin-right: 30px;
      .avatar-wrapper {
        position: relative;
        .user-avatar {
          cursor: pointer;
          width: 40px;
          height: 40px;
          border-radius: 10px;
        }
        .el-icon-caret-bottom {
          cursor: pointer;
          position: absolute;
          right: -20px;
          top: 25px;
          font-size: 12px;
        }
      }
    }
  }
}
.site-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1030;
  height: 50px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  background-color: #fff;

  &__header {
    position: relative;
    float: left;
    width: 200px;
    height: 50px;
    overflow: hidden;
  }

  &__brand {
    display: table-cell;
    vertical-align: middle;
    width: 200px;
    height: 50px;
    margin: 0;
    line-height: 50px;
    font-size: 20px;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;

    &-lg,
    &-mini {
      font-size: 17px;
      height: 50px;
      line-height: 50px;
      font-size: 17px;
      font-weight: 600;

      &:focus,
      &:hover {
        text-decoration: none;
      }
    }

    &-mini {
      display: none;
    }
  }

  &__switch {
    font-size: 18px;
    border-bottom: none !important;
  }

  &__avatar {
    border-bottom: none !important;

    * {
      vertical-align: inherit;
    }

    .el-dropdown-link {
      > img {
        width: 36px;
        height: auto;
        margin-right: 5px;
        border-radius: 100%;
        vertical-align: middle;
      }
    }
  }

  &__body {
    position: relative;
    margin-left: 200px;
    padding-right: 15px;
    background-color: #fff;
  }

  &__menu {
    float: left;
    background-color: transparent;
    border-bottom: 0;

    &--right {
      float: right;
    }

    a:focus,
    a:hover {
      text-decoration: none;
    }

    .el-menu-item,
    .el-submenu > .el-submenu__title {
      height: 50px;
      line-height: 50px;
    }

    .el-submenu > .el-menu {
      top: 55px;
    }

    .el-badge {
      display: inline;
      z-index: 2;

      &__content {
        line-height: 16px;
      }
    }
  }
}

/* Sidebar
------------------------------ */
.site-sidebar {
  position: fixed;
  top: calc(#{$navbar-height});
  left: 0;
  bottom: 0;
  z-index: 1020;
  width: $sidebar-full-width !important;
  height: calc(100vh - #{$navbar-height});
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);

  // .el-submenu__icon-arrow {
  //   display: none;
  // }

  .el-submenu__title {
    height: 49.2px;
    line-height: 49.2px;
  }

  .el-submenu .el-menu-item {
    height: 49.2px;
    line-height: 21px;
    font-size: 14px;
    padding: 14px 24px;
    font-weight: 400;
    position: relative;
    cursor: pointer;
    z-index: 1;
    -webkit-transition: all 0.2s ease-in-out;
    transition: all 0.2s ease-in-out;
  }

  .el-menu {
    border-right: 0;
  }

  .el-menu--collapse > .el-menu-item span,
  .el-menu--collapse .el-submenu > .el-submenu__title span {
    height: 0;
    width: 0;
    overflow: hidden;
    visibility: hidden;
    display: inline-block;
  }

  .el-menu--collapse .el-menu-item .el-submenu__icon-arrow,
  .el-menu--collapse .el-submenu > .el-submenu__title .el-submenu__icon-arrow {
    display: none;
  }

  //侧边栏非折叠时
  .site-sidebar__menu-icon {
    font-size: 21px !important;
    // color: $--color-primary !important;
    margin-right: 28px !important;
    margin-top: 2px;
    & + span {
      font-size: 16px;
    }
    &.dot-icon {
      opacity: 0;
      font-size: 0 !important;
    }
  }

  &--dark,
  &--dark-popper {
    background-color: $sidebar--background-color-dark;

    .site-sidebar__menu.el-menu,
    > .el-menu--popup {
      background-color: $sidebar--background-color-dark;

      .el-menu-item,
      .el-submenu > .el-submenu__title {
        color: $sidebar--color-text-dark;

        &:focus,
        &:hover {
          background-color: inherit;
          color: #fff;
        }
      }

      .el-menu,
      .el-submenu.is-opened {
        background-color: $sidebar--background-color-open-dark;

        > .el-submenu__title {
          background-color: $sidebar--background-color-dark;
        }
      }
    }

    // 侧边栏非折叠
    .site-sidebar__menu.el-menu,
    > .el-menu--inline {
      .el-menu-item.is-active {
        // background-color: $sidebar--color-hover-dark;
      }
    }

    .site-sidebar__menu.el-menu,
    > .el-menu--popup {
      .el-menu-item.is-active,
      .el-submenu.is-active {
        & > .el-submenu__title {
          color: #fff;
        }
        .el-icon-arrow-down {
          color: #fff;
        }
      }

      .el-menu-item.is-active {
        color: #fff;
      }
    }

    .site-sidebar__menu.el-menu.el-menu--collapse,
    > .el-menu--popup {
      .el-menu-item.is-active {
        color: $sidebar--color-text-light;
      }
    }

    .site-sidebar__inner.el-menu,
    > .el-menu--popup {
      background-color: $sidebar--background-color-dark;

      .el-menu-item,
      .el-submenu > .el-submenu__title {
        color: $sidebar--color-text-dark;

        &:focus,
        &:hover {
          background-color: #283446;
        }
      }
    }

    .site-sidebar__avatar {
      border-left: 3px solid $sidebar--background-color-dark;
      &:focus,
      &:hover {
        border-left: 3px solid $--color-primary;
        box-shadow: none;
      }
      .el-dropdown {
        color: inherit;
      }
    }
  }

  &--light,
  &---popper {
    background-color: #fff;
    .site-sidebar__avatar {
      &:focus,
      &:hover {
        color: $sidebar--color-text-light;
        background-color: #fff;
      }
    }

    //侧边栏非折叠时
    .site-sidebar__menu.el-menu,
    > .el-menu--popup {
      .el-menu-item,
      .el-submenu > .el-submenu__title {
        &:focus,
        &:hover {
          color: $sidebar--color-text-light;
          background-color: #fff;
        }
      }

      .el-menu-item.is-active {
        color: $sidebar--color-text-light;
      }

      .is-opened .el-menu-item.is-active {
        // background-color: mix(#fff, $--color-primary, 91%);
        background-color: #f0f7ff;
      }
    }
  }

  // &__inner {
  //     position: relative;
  //     z-index: 1;
  //     width: 250px;
  //     height: 100%;
  //     padding-bottom: 15px;
  //     overflow-y: scroll;
  // }

  .sidebarWrap {
    overflow-y: auto;
    overflow-x: hidden;
    // box-shadow: 2px 0 8px 0 rgb(29 35 41 / 5%);

    &::-webkit-scrollbar {
      width: 0px;
    }
  }

  &__menu.el-menu {
    width: $sidebar-full-width;
    border-right: 0;
  }

  &__menu-icon {
    width: 24px;
    margin-right: 5px;
    text-align: center;
    font-size: 16px;
    color: inherit !important;
  }
}

/* Content
------------------------------ */
.site-content {
  position: relative;

  &__wrapper {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    background: $content--background-color;
    transition: padding ease 0.3s;
  }

  &--tabs {
    padding: 55px 0 0;
  }

  > .el-tabs {
    > .el-tabs__header {
      position: fixed;
      top: 50px;
      left: 200px;
      right: 0;
      z-index: 930;
      padding: 0 55px 0 15px;
      box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 0 6px 0 rgba(0, 0, 0, 0.04);
      background-color: #fff;

      > .el-tabs__nav-wrap {
        margin-bottom: 0;

        &:after {
          display: none;
        }
      }
    }

    > .el-tabs__content {
      padding: 0 15px 15px;

      > .site-tabs__tools {
        position: fixed;
        top: 50px;
        right: 0;
        z-index: 931;
        height: 40px;
        padding: 0 12px;
        font-size: 16px;
        line-height: 40px;
        background-color: $content--background-color;
        cursor: pointer;

        .el-icon--right {
          margin-left: 0;
        }
      }
    }
  }
}

.el-table__expand-icon {
  display: inline-block;
  width: 14px;
  vertical-align: middle;
  margin-right: 5px;
}

.feedback-box {
  position: fixed;
  z-index: 10000;
  bottom: 68px;
  // left: 14px;
  right: 34px;

  .button-wrapper {
    cursor: pointer;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    background: #fff;
    color: #595959;
    border-radius: 32px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  }
}

.el-card-bordered {
  border: 1px solid #f0f5fa;
  border-color: #f0f5fa;
}

.popover-modal {
  .el-popover__title {
    font-size: 14px;
  }
  .footer {
    text-align: right;
  }
}
